Methods |
A method is an action that can be made on a object.
Objects are black boxes, so you communicate with them via methods.
A method is identified with a string.
Any class defines its own methods.
A method is applied on an object with:
A method is called:
A method can be both direct and indirect, e.g. SORT method of List class is both direct
and indirect, or can be only direct, e.g. INPUTBUFFERED method of Application class is
direct but not indirect, or can be only indirect, e.g. SET method is indirect only.
It means that
res=Notify("button","pressed",0,"app","INPUTBUFFERED")
is not legal (res is 72 [METHOD_NONOTIFY]).
and that
res = DoMethod("status","set","contents","hello world")
is not legal (res is 71 [METHOD_NOTIFY_ONLY]).